package su.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import su.dao.DepDao;
import su.domain.Dep;
import su.service.DepService;

import java.util.List;

@Service("DepServiceImpl")
public class DepServiceImpl implements DepService {

    @Autowired
    private DepDao depDao;

    @Override
    public List<Dep> findAll() {
        return depDao.findAll();
    }

    @Override
    public void saveDep(Dep dep) {
        depDao.saveDep(dep);
    }
}
